/*!
 angularAMD v0.2.1
 (c) 2013-2014 Marcos Lin https://github.com/marcoslin/
 License: MIT
 */
define(function () {
    return function (dependencies) {
        var definition = {
            resolver: ['$q', '$rootScope', function ($q, $rootScope) {
                var defer = $q.defer();
                require(dependencies, function () {
                    $rootScope.$apply(function () {
                        defer.resolve()
                    })
                });
                return defer.promise;
            }]
        };
        return definition;
    }
});


